package com.wn.access.service;

import com.wn.access.entity.TradeLog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wn.access.utils.BaseResult;
import com.wn.common.model.dto.bank.BankCardAddDTO;
import com.wn.common.model.dto.trade.bid.BankBidDTO;
import com.wn.common.model.dto.trade.bid.BidBalanceDTO;
import com.wn.common.model.dto.trade.bid.BorrowRecordStatusDTO;
import com.wn.common.model.vo.bank.SignatureVo;
import com.wn.common.model.vo.borrow.BorrowRecordVo;
import com.wn.common.model.vo.pay.RepayVo;
import com.wn.common.model.vo.trade.bid.LoanVo;

/**
 * <p>
 * 托管系统交易记录表 服务类
 * </p>
 *
 * @author yellow docker
 * @since 2023-03-01
 */
public interface ITradeLogService extends IService<TradeLog> {

    SignatureVo savelog(BankCardAddDTO bankCardAddDTO);

    void updateSyncStatus(String reqCode);

    BaseResult syncBorrowRecord(BorrowRecordVo borrowRecordVo);

    //查询银行的余额
    BidBalanceDTO getBidBalance(String userCode);

    BaseResult bankBidService(BankBidDTO bankBidDTO);

    BaseResult confirmLoan(LoanVo loanVo);

    //修改借款记录的状态
    BaseResult updateBorrowRecordStatus(BorrowRecordStatusDTO borrowRecordStatusDTO);

    //还款的确认
    BaseResult confirmRepay(RepayVo repayVo);
}
